﻿namespace Digitalmes.Application.Sys.Roles.Commands;

internal sealed class CreateRoleCommandValidator : AbstractValidator<CreateRoleCommand>
{
    public CreateRoleCommandValidator()
    {
        RuleFor(v => v.Role.Code).MaximumLength(32).NotEmpty();
        RuleFor(v => v.Role.Name).MaximumLength(32).NotEmpty();
    }
}
